package cn.com.java.service;


import cn.com.java.model.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface SysMenuService extends IService<SysMenu> {


    /**
     * 查询父级菜单
     * @return
     */
    List<SysMenu> listByParents();

    /**
     * getTree
     * @param list
     * @return
     */
    List<SysMenu> findMenusTree(List<SysMenu> list);

    /**
     * 插叙所有 菜单以树状返回
     * @return
     */
    List<SysMenu>  findSysMensTree();

    List<SysMenu>  findMensBySysRoleId(Long sysRoleId);
}